﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using Ghasam.Business.Services;
using Ghasam.Business.Domain.Entity;
using System.Collections.Generic;

public partial class SalesPersons : BasePage {

    #region"Private Property"
    private ISalesPersonService salesPersonService;
    #endregion
    #region"Public Method"
    public ISalesPersonService SalesPersonService
    {
        get { return salesPersonService; }
        set { salesPersonService = value; }
    }
    public override string ActionName
    {
        get
        {
            return "vw_salespersons";
        }
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        bindGrid();
    }
    #endregion
    #region"Private Method"
    private void bindGrid()
    {
        IList<SalesPerson> li = SalesPersonService.FindAll();
        
        gvSalesPersons.DataSource = li;
        gvSalesPersons.DataBind();
    }
    #endregion

}
